const model  = require('../model/model');


/* 

相关性
DAO

	职业-行业相关性 
	const modelprofessionIndustryRelative=mongoose.model('professionIndustryRelative',professionIndustryRelative,'professionIndustryRelative')
	职能-职业相关性 
	const modelprofessionFunctionRelative=mongoose.model('professionFunctionRelative',professionFunctionRelative,'professionFunctionRelative')
*/







/* 添加职业-行业相关性  */
async  function  piAdd (data){
			
		   let admin=new model.modelprofessionIndustryRelative(data)
		   return admin.save()
}


/* 添加职能-职业相关性  */
async  function  zzAdd (data){
	let admin=new model.modelprofessionFunctionRelative(data)
    return admin.save()
}










module.exports={
	piAdd,zzAdd
}
